Skip to content

Conversation

@artemseleznev
Copy link

The Svace static analyzer (https://www.ispras.ru/en/technologies/svace/) flagged this code as suspicious: it could lead to a panic (nil pointer dereference) because spec might be nil.
We have not spec != nil checks in all callers, so this check'd prevent panics

Artem Seleznev and others added 2 commits September 9, 2025 09:08
@artemseleznev artemseleznev marked this pull request as ready for review September 9, 2025 06:24
Copy link
Member

@fredbi fredbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@artemseleznev
Copy link
Author

@fredbi thank you. Some unit tests failed with 404 resp code. Seems it's not caused by our fix. Can we re-run them?

@fredbi
Copy link
Member

fredbi commented Sep 10, 2025

Yeah tried this already. It is unrelated to your PR. I have to check first for some flaky tests. I'll take care of your PR don't worry

@fredbi fredbi enabled auto-merge (rebase) September 10, 2025 19:59
@fredbi fredbi disabled auto-merge September 10, 2025 19:59
@fredbi fredbi mentioned this pull request Sep 10, 2025
5 tasks
@fredbi
Copy link
Member

fredbi commented Sep 10, 2025

been a little too quick yesterday. The actual check should be if c.spec != nil. Fixing it in another PR, on top of your commit (so your contribution remains recorded :) )

@fredbi
Copy link
Member

fredbi commented Sep 10, 2025

superseded by #363, which onboards this commit. Thanks

@fredbi fredbi closed this Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants